//
//  SportHealthyDetailViewController.m
//  B
//
//  Created by lanou on 16/5/13.
//  Copyright © 2016年 裴启航. All rights reserved.
//

#import "SportHealthyDetailViewController.h"

@interface SportHealthyDetailViewController ()

@end

@implementation SportHealthyDetailViewController

- (void)viewWillAppear:(BOOL)animated {
    self.tabBarController.tabBar.hidden = YES;
    self.navigationController.navigationBarHidden = NO;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"详情";
    NSString *urlStr = [NSString stringWithFormat:@"http://app.dunkhome.com/v2/news/%@", self.sportDetailID];
    UIWebView *myWebView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight)];
    NSURL *url = [NSURL URLWithString:urlStr];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [myWebView loadRequest:request];
    [self.view addSubview:myWebView];
    
    
}

- (void)back {
    [self.navigationController popToRootViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
